.class public Lcom/instagram/android/feed/a/b/ah;
.super Ljava/lang/Object;
.source "UserHeaderRowViewBinder.java"


# direct methods
.method public static a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 239
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 240
    sget v1, Lcom/facebook/ax;->row_profile_header:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 241
    new-instance v2, Lcom/instagram/android/feed/a/b/ar;

    invoke-direct {v2}, Lcom/instagram/android/feed/a/b/ar;-><init>()V

    .line 243
    iput-object v1, v2, Lcom/instagram/android/feed/a/b/ar;->a:Landroid/view/View;

    .line 244
    sget v0, Lcom/facebook/aw;->row_friend_request_header:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->c:Landroid/view/View;

    .line 245
    iget-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->c:Landroid/view/View;

    invoke-static {v0}, Lcom/instagram/android/a/b/e;->a(Landroid/view/View;)Landroid/view/View;

    .line 246
    sget v0, Lcom/facebook/aw;->row_profile_header_imageview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/IgImageView;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->d:Lcom/instagram/android/mediacache/IgImageView;

    .line 247
    sget v0, Lcom/facebook/aw;->row_profile_header_container_photos:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->e:Landroid/view/View;

    .line 248
    sget v0, Lcom/facebook/aw;->row_profile_header_textview_photos_count:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->f:Landroid/widget/TextView;

    .line 249
    sget v0, Lcom/facebook/aw;->row_profile_header_container_followers:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->g:Landroid/view/View;

    .line 250
    sget v0, Lcom/facebook/aw;->row_profile_header_textview_followers_count:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->h:Landroid/widget/TextView;

    .line 252
    sget v0, Lcom/facebook/aw;->row_profile_header_container_following:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->i:Landroid/view/View;

    .line 253
    sget v0, Lcom/facebook/aw;->row_profile_header_textview_following_count:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->j:Landroid/widget/TextView;

    .line 255
    sget v0, Lcom/facebook/aw;->row_profile_header_button_follow:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/FollowButton;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->k:Lcom/instagram/android/widget/FollowButton;

    .line 256
    sget v0, Lcom/facebook/aw;->row_profile_header_edit_profile:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->s:Landroid/widget/TextView;

    .line 257
    sget v0, Lcom/facebook/aw;->row_profile_header_textview_biography:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->l:Landroid/widget/TextView;

    .line 258
    sget v0, Lcom/facebook/aw;->row_profile_header_textview_fullname:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->b:Landroid/widget/TextView;

    .line 259
    sget v0, Lcom/facebook/aw;->row_profile_header_textview_website:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->m:Landroid/widget/TextView;

    .line 260
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_buttons:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->n:Landroid/view/ViewGroup;

    .line 262
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_button_grid:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->o:Landroid/widget/Button;

    .line 264
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_button_list:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->p:Landroid/widget/Button;

    .line 266
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_button_map:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/ProfileMapButton;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->q:Lcom/instagram/android/widget/ProfileMapButton;

    .line 268
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_button_tagged:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/people/widget/ProfileTagsButton;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->r:Lcom/instagram/android/people/widget/ProfileTagsButton;

    .line 270
    sget v0, Lcom/facebook/aw;->row_profile_header_textview_biography_group:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->t:Landroid/view/View;

    .line 271
    sget v0, Lcom/facebook/aw;->row_profile_header_textview_verified:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->u:Landroid/view/View;

    .line 272
    sget v0, Lcom/facebook/aw;->row_profile_header_bio_bottom_seapartor:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/ar;->v:Landroid/view/View;

    .line 273
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 274
    return-object v1
.end method

.method private static a(Ljava/lang/Integer;)Ljava/lang/String;
    .locals 6
    .parameter

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 222
    if-eqz p0, :cond_2

    .line 223
    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 224
    const v1, 0x186a0

    if-ge v0, v1, :cond_0

    .line 225
    invoke-virtual {p0}, Ljava/lang/Integer;->toString()Ljava/lang/String;

    move-result-object v0

    .line 235
    :goto_0
    return-object v0

    .line 226
    :cond_0
    const v1, 0xf4240

    if-ge v0, v1, :cond_1

    .line 227
    int-to-double v0, v0

    const-wide v2, 0x408f400000000000L

    div-double/2addr v0, v2

    invoke-static {v0, v1}, Ljava/lang/Math;->round(D)J

    move-result-wide v0

    long-to-double v0, v0

    .line 228
    const-string v2, "%.0fk"

    new-array v3, v5, [Ljava/lang/Object;

    invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v0

    aput-object v0, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 231
    :cond_1
    int-to-double v0, v0

    const-wide v2, 0x40c3880000000000L

    div-double/2addr v0, v2

    invoke-static {v0, v1}, Ljava/lang/Math;->round(D)J

    move-result-wide v0

    long-to-double v0, v0

    const-wide/high16 v2, 0x4059

    div-double/2addr v0, v2

    .line 232
    const-string v2, "%.2fm"

    new-array v3, v5, [Ljava/lang/Object;

    invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v0

    aput-object v0, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 235
    :cond_2
    if-nez p0, :cond_3

    const-string v0, ""

    goto :goto_0

    :cond_3
    invoke-virtual {p0}, Ljava/lang/Integer;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public static a(Lcom/instagram/android/feed/a/b/ar;Lcom/instagram/android/model/b/e;ILandroid/content/Context;Landroid/support/v4/app/aj;Landroid/support/v4/app/r;Lcom/instagram/android/feed/a/o;Lcom/instagram/android/feed/a/b/aq;)V
    .locals 6
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 49
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->q:Lcom/instagram/android/widget/ProfileMapButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/ProfileMapButton;->setVisibility(I)V

    .line 50
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->r:Lcom/instagram/android/people/widget/ProfileTagsButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/people/widget/ProfileTagsButton;->setVisibility(I)V

    .line 52
    if-eqz p1, :cond_a

    .line 54
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->c:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/a/b/h;

    invoke-static {v0, p1, p3, p4}, Lcom/instagram/android/a/b/e;->a(Lcom/instagram/android/a/b/h;Lcom/instagram/android/model/b/e;Landroid/content/Context;Landroid/support/v4/app/aj;)V

    .line 58
    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 59
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->d:Lcom/instagram/android/mediacache/IgImageView;

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/instagram/android/mediacache/IgImageView;->setUrl(Ljava/lang/String;)V

    .line 65
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->d:Lcom/instagram/android/mediacache/IgImageView;

    new-instance v3, Lcom/instagram/android/feed/a/b/ai;

    invoke-direct {v3, p7}, Lcom/instagram/android/feed/a/b/ai;-><init>(Lcom/instagram/android/feed/a/b/aq;)V

    invoke-virtual {v0, v3}, Lcom/instagram/android/mediacache/IgImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 71
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->q:Lcom/instagram/android/widget/ProfileMapButton;

    new-instance v3, Lcom/instagram/android/feed/a/b/aj;

    invoke-direct {v3, p7}, Lcom/instagram/android/feed/a/b/aj;-><init>(Lcom/instagram/android/feed/a/b/aq;)V

    invoke-virtual {v0, v3}, Lcom/instagram/android/widget/ProfileMapButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 78
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->f:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->r()Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v3}, Lcom/instagram/android/feed/a/b/ah;->a(Ljava/lang/Integer;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 79
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->h:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->p()Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v3}, Lcom/instagram/android/feed/a/b/ah;->a(Ljava/lang/Integer;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 80
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->j:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->q()Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v3}, Lcom/instagram/android/feed/a/b/ah;->a(Ljava/lang/Integer;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 83
    invoke-static {p1}, Lcom/instagram/android/model/b/p;->b(Lcom/instagram/android/model/b/e;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 84
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->e:Landroid/view/View;

    new-instance v3, Lcom/instagram/android/feed/a/b/ak;

    invoke-direct {v3, p0}, Lcom/instagram/android/feed/a/b/ak;-><init>(Lcom/instagram/android/feed/a/b/ar;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 93
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->g:Landroid/view/View;

    new-instance v3, Lcom/instagram/android/feed/a/b/al;

    invoke-direct {v3, p5, p3, p1}, Lcom/instagram/android/feed/a/b/al;-><init>(Landroid/support/v4/app/r;Landroid/content/Context;Lcom/instagram/android/model/b/e;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 100
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->i:Landroid/view/View;

    new-instance v3, Lcom/instagram/android/feed/a/b/am;

    invoke-direct {v3, p5, p3, p1}, Lcom/instagram/android/feed/a/b/am;-><init>(Landroid/support/v4/app/r;Landroid/content/Context;Lcom/instagram/android/model/b/e;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 108
    :cond_0
    invoke-static {p1}, Lcom/instagram/android/feed/a/b/ah;->a(Lcom/instagram/android/model/b/e;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 109
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->k:Lcom/instagram/android/widget/FollowButton;

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/FollowButton;->setVisibility(I)V

    .line 110
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->k:Lcom/instagram/android/widget/FollowButton;

    const/4 v3, 0x1

    invoke-virtual {v0, p1, p4, v3}, Lcom/instagram/android/widget/FollowButton;->a(Lcom/instagram/android/model/b/e;Landroid/support/v4/app/aj;Z)V

    .line 122
    :goto_1
    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_4

    .line 123
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->b:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 124
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 129
    :goto_2
    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->n()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_5

    .line 130
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->l:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->n()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 131
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 136
    :goto_3
    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->o()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_6

    .line 137
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->m:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->o()Ljava/lang/String;

    move-result-object v3

    const-string v4, "^https?://"

    const-string v5, ""

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replaceFirst(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 138
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 139
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->m:Landroid/widget/TextView;

    new-instance v3, Lcom/instagram/android/feed/a/b/ao;

    invoke-direct {v3, p1, p3}, Lcom/instagram/android/feed/a/b/ao;-><init>(Lcom/instagram/android/model/b/e;Landroid/content/Context;)V

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 155
    :goto_4
    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->n()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->o()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 159
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->t:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 165
    :goto_5
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->r:Lcom/instagram/android/people/widget/ProfileTagsButton;

    new-instance v3, Lcom/instagram/android/feed/a/b/ap;

    invoke-direct {v3, p1, p5}, Lcom/instagram/android/feed/a/b/ap;-><init>(Lcom/instagram/android/model/b/e;Landroid/support/v4/app/r;)V

    invoke-virtual {v0, v3}, Lcom/instagram/android/people/widget/ProfileTagsButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 177
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->r:Lcom/instagram/android/people/widget/ProfileTagsButton;

    invoke-virtual {v0, p1}, Lcom/instagram/android/people/widget/ProfileTagsButton;->setUser(Lcom/instagram/android/model/b/e;)V

    .line 178
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->r:Lcom/instagram/android/people/widget/ProfileTagsButton;

    invoke-virtual {v0, p2}, Lcom/instagram/android/people/widget/ProfileTagsButton;->setPhotosOfYouCount(I)V

    .line 180
    iget-object v3, p0, Lcom/instagram/android/feed/a/b/ar;->u:Landroid/view/View;

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->e()Z

    move-result v0

    if-eqz v0, :cond_8

    move v0, v1

    :goto_6
    invoke-virtual {v3, v0}, Landroid/view/View;->setVisibility(I)V

    .line 181
    invoke-static {p1}, Lcom/instagram/android/model/b/p;->b(Lcom/instagram/android/model/b/e;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 182
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->n:Landroid/view/ViewGroup;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 183
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->o:Landroid/widget/Button;

    iget-object v1, p0, Lcom/instagram/android/feed/a/b/ar;->p:Landroid/widget/Button;

    invoke-static {v0, v1, p6}, Lcom/instagram/android/widget/ba;->a(Landroid/widget/Button;Landroid/widget/Button;Lcom/instagram/android/feed/a/a;)V

    .line 185
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->q:Lcom/instagram/android/widget/ProfileMapButton;

    invoke-virtual {v0, p1}, Lcom/instagram/android/widget/ProfileMapButton;->setUser(Lcom/instagram/android/model/b/e;)V

    .line 186
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->v:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 215
    :goto_7
    return-void

    .line 61
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->d:Lcom/instagram/android/mediacache/IgImageView;

    invoke-virtual {p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    sget v4, Lcom/facebook/av;->profile_anonymous_user:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/instagram/android/mediacache/IgImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_0

    .line 112
    :cond_3
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->k:Lcom/instagram/android/widget/FollowButton;

    invoke-virtual {v0, v2}, Lcom/instagram/android/widget/FollowButton;->setVisibility(I)V

    .line 113
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->s:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 114
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->s:Landroid/widget/TextView;

    new-instance v3, Lcom/instagram/android/feed/a/b/an;

    invoke-direct {v3, p5}, Lcom/instagram/android/feed/a/b/an;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_1

    .line 126
    :cond_4
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_2

    .line 133
    :cond_5
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_3

    .line 152
    :cond_6
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_4

    .line 161
    :cond_7
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->t:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_5

    :cond_8
    move v0, v2

    .line 180
    goto :goto_6

    .line 188
    :cond_9
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->n:Landroid/view/ViewGroup;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 189
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->v:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_7

    .line 193
    :cond_a
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->d:Lcom/instagram/android/mediacache/IgImageView;

    invoke-virtual {p3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    sget v4, Lcom/facebook/av;->profile_anonymous_user:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/instagram/android/mediacache/IgImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 196
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->f:Landroid/widget/TextView;

    const-string v3, "-"

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 197
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->h:Landroid/widget/TextView;

    const-string v3, "-"

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 198
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->j:Landroid/widget/TextView;

    const-string v3, "-"

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 200
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->c:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 202
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 204
    invoke-virtual {p6}, Lcom/instagram/android/feed/a/o;->s()Z

    move-result v0

    if-eqz v0, :cond_b

    .line 205
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->l:Landroid/widget/TextView;

    sget v3, Lcom/facebook/ba;->user_not_found:I

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    .line 212
    :goto_8
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->n:Landroid/view/ViewGroup;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 213
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->v:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_7

    .line 206
    :cond_b
    invoke-virtual {p6}, Lcom/instagram/android/feed/a/o;->t()Z

    move-result v0

    if-eqz v0, :cond_c

    .line 207
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->l:Landroid/widget/TextView;

    sget v3, Lcom/facebook/ba;->request_error:I

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    goto :goto_8

    .line 209
    :cond_c
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/ar;->l:Landroid/widget/TextView;

    sget v3, Lcom/facebook/ba;->loading:I

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    goto :goto_8
.end method

.method private static a(Lcom/instagram/android/model/b/e;)Z
    .locals 1
    .parameter

    .prologue
    .line 218
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {p0}, Lcom/instagram/android/model/b/p;->a(Lcom/instagram/android/model/b/e;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
